﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;

using H2.NET.Business;

namespace H2.NET.Web.Pages
{
    public partial class DMO : TaskControl
    {
        #region 属性 Public
        public string FORM
        {
            get
            {
                return (Parent as TabMaterial).Status.FORM;
            }
        }

        public string Category
        {
            get
            {
                return (Parent as TabMaterial).Status.Category;
            }
        }

        public string Action
        {
            get
            {
                return (Parent as TabMaterial).Status.DMO;
            }
        }

        private bool IsUsed
        {
            get
            {
                //return !(string.IsNullOrEmpty(FORM) || string.IsNullOrEmpty(Action)); 
                return !string.IsNullOrEmpty(Action);
            }
        }
        #endregion

        #region 事件 页面加载
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Visible = IsUsed;
        }
        #endregion

        #region 方法 InitControls(初始化)
        public void InitControls(mdc_Material mt)
        {
            //如果当前 Tabs 是隐藏的情况，退出
            Visible = IsUsed;
            if (!IsUsed)
            {
                return;
            }

            Attachment1.FileClass = "DMO";
            Attachment1.AllowUpload = false;
            Attachment1.AllowDelete = false;

            Distribute(mt);

            if (TaskAPI.IsAllowSubmit)
            {
                //if (TaskAPI.Process != "Fini Code Application")
                //{
                //    SetVisible(false, DMO_DrpPriority_L, DMO_DrpPriority);
                //}
                switch (Action)
                {
                    case "C":
                        SetEnable(true, DMO_SAP_Code, DMO_Remarks,DMO_DrpPriority,DMO_Arrpvoe_Creation_Number, DMO_Arrpvoe_Creation_Time, DMO_Arrpvoe_Revision_Number, DMO_Arrpvoe_Revision_Time);
                        SetEnable(true, DMO_Maintain_Creation_Number, DMO_Maintain_Creation_Time, DMO_Maintain_Revision_Number, DMO_Arrpvoe_Revision_Time,DMO_Check_Creation_Number,DMO_Check_Creation_Time,DMO_Check_Revision_Number,DMO_Check_Revision_Time);
                        SetEnable(true, DMO_BOM_Arrpvoe_Creation_Number,DMO_BOM_Arrpvoe_Creation_Time,DMO_BOM_Arrpvoe_Revision_Number,DMO_BOM_Arrpvoe_Revision_Time,DMO_BOM_Check_Creation_Number,DMO_BOM_Check_Creation_Time,DMO_BOM_Check_Revision_Time,DMO_BOM_Check_Revision_Number,DMO_BOM_Maintain_Creation_Number,DMO_BOM_Maintain_Creation_Time,DMO_BOM_Maintain_Revision_Number,DMO_BOM_Maintain_Revision_Time);
                        Attachment1.AllowUpload = true;
                        Attachment1.AllowDelete = true;
                        SetEnable(true, DMO_SAP_Code, DMO_SAP_Code_L, DMO_DrpPriority_L, DMO_DrpPriority);
                        SetVisible(true, DMO_Maintain_Creation_Number, DMO_Maintain_Creation_Time, DMO_Maintain_Revision_Number, DMO_Maintain_Revision_Time);
                        SetVisible(true, DMO_Check_Creation_Number, DMO_Check_Creation_Time, DMO_Check_Revision_Number, DMO_Check_Revision_Time);
                        SetForeColor(Color.Black, DMO_DrpPriority_L, DMO_Type_L, DMO_Step_L, DMO_Number_L, DMO_Time_L);
                        
                        break;
                    case "S":
                        SetEnable(false, DMO_BOM_Arrpvoe_Creation_Number, DMO_BOM_Arrpvoe_Creation_Time, DMO_BOM_Arrpvoe_Revision_Number, DMO_BOM_Arrpvoe_Revision_Time, DMO_BOM_Check_Creation_Number, DMO_BOM_Check_Creation_Time, DMO_BOM_Check_Revision_Time, DMO_BOM_Check_Revision_Number, DMO_BOM_Maintain_Creation_Number, DMO_BOM_Maintain_Creation_Time, DMO_BOM_Maintain_Revision_Number, DMO_BOM_Maintain_Revision_Time);
                        SetEnable(false, DMO_SAP_Code, DMO_Remarks, DMO_Arrpvoe_Creation_Number, DMO_Arrpvoe_Creation_Time, DMO_Arrpvoe_Revision_Number, DMO_Arrpvoe_Revision_Time,DMO_DrpPriority);
                        SetEnable(false, DMO_Maintain_Creation_Number, DMO_Maintain_Creation_Time, DMO_Maintain_Revision_Number, DMO_Maintain_Revision_Time);
                        SetEnable(false, DMO_Check_Creation_Number, DMO_Check_Creation_Time, DMO_Check_Revision_Number, DMO_Check_Revision_Time);
                        SetVisible(true, DMO_Maintain_Creation_Number, DMO_Maintain_Creation_Time, DMO_Maintain_Revision_Number, DMO_Maintain_Revision_Time);
                        SetVisible(true, DMO_Check_Creation_Number, DMO_Check_Creation_Time, DMO_Check_Revision_Number, DMO_Check_Revision_Time);
                        SetVisible(true, DMO_SAP_Code, DMO_SAP_Code_L,DMO_DrpPriority_L, DMO_Arrpvoe_Creation_Number, DMO_Arrpvoe_Creation_Time, DMO_Arrpvoe_Revision_Number, DMO_Arrpvoe_Revision_Time, DMO_DrpPriority);
                        SetForeColor(Color.Black, DMO_SAP_Code_L, DMO_Remarks_L);
                        SetForeColor(Color.Black, DMO_Maintain_Creation_Number, DMO_Maintain_Creation_Time, DMO_Maintain_Revision_Number, DMO_Maintain_Revision_Time, DMO_Arrpvoe_Creation_Number, DMO_Arrpvoe_Creation_Time, DMO_Arrpvoe_Revision_Number, DMO_Arrpvoe_Revision_Time,
                            DMO_Check_Creation_Number, DMO_Check_Creation_Time, DMO_Check_Revision_Number, DMO_Check_Revision_Time);
                        break;
                    case "E":
                        SetEnable(true, DMO_BOM_Arrpvoe_Creation_Number, DMO_BOM_Arrpvoe_Creation_Time, DMO_BOM_Arrpvoe_Revision_Number, DMO_BOM_Arrpvoe_Revision_Time, DMO_BOM_Check_Creation_Number, DMO_BOM_Check_Creation_Time, DMO_BOM_Check_Revision_Time, DMO_BOM_Check_Revision_Number, DMO_BOM_Maintain_Creation_Number, DMO_BOM_Maintain_Creation_Time, DMO_BOM_Maintain_Revision_Number, DMO_BOM_Maintain_Revision_Time);
                        SetVisible(true, DMO_SAP_Code, DMO_SAP_Code_L, DMO_DrpPriority_L,DMO_Arrpvoe_Creation_Number, DMO_Arrpvoe_Creation_Time, DMO_Arrpvoe_Revision_Number, DMO_Arrpvoe_Revision_Time, DMO_DrpPriority);
                        SetEnable(true,  DMO_SAP_Code, DMO_Remarks, DMO_Arrpvoe_Creation_Number, DMO_Arrpvoe_Creation_Time, DMO_Arrpvoe_Revision_Number, DMO_Arrpvoe_Revision_Time,DMO_DrpPriority);
                        SetEnable(true, DMO_Maintain_Creation_Number, DMO_Maintain_Creation_Time, DMO_Maintain_Revision_Number, DMO_Maintain_Revision_Time);
                        SetEnable(true, DMO_Check_Creation_Number, DMO_Check_Creation_Time, DMO_Check_Revision_Number, DMO_Check_Revision_Time);
                        SetVisible(true, DMO_Maintain_Creation_Number, DMO_Maintain_Creation_Time, DMO_Maintain_Revision_Number, DMO_Maintain_Revision_Time);
                        SetVisible(true, DMO_Check_Creation_Number, DMO_Check_Creation_Time, DMO_Check_Revision_Number, DMO_Check_Revision_Time);
                        Attachment1.AllowUpload = true;
                        Attachment1.AllowDelete = true;
                        SetForeColor(Color.Black, DMO_SAP_Code_L, DMO_Remarks_L);
                        break;
                }
            }
            else
            {
                SetEnable(false, DMO_SAP_Code, DMO_Remarks);
                Attachment1.AllowUpload = false;
                Attachment1.AllowDelete = false;
            }
        }
        #endregion

        #region 方法 Distribute,Collect(分发, 收集值)
        public void Distribute(mdc_Material mt)
        {
            //如果当前 Tabs 是隐藏的情况，退出
            if (!IsUsed)
            {
                return;
            }

            DMO_SAP_Code.Text = mt.DMO_SAP_Code;
            DMO_Remarks.Text  = mt.DMO_Remarks;
            DMO_Arrpvoe_Creation_Number.Text = mt.DMO_Arrpvoe_Creation_Number;
            DMO_Arrpvoe_Creation_Time.Text = mt.DMO_Arrpvoe_Creation_Time;
            DMO_Arrpvoe_Revision_Number.Text = mt.DMO_Arrpvoe_Revision_Number;
            DMO_Arrpvoe_Revision_Time.Text = mt.DMO_Arrpvoe_Revision_Time;
            DMO_DrpPriority.Text = mt.DMO_Priority;
            DMO_Maintain_Creation_Number.Text = mt.DMO_Maintain_Creation_Number;
            DMO_Maintain_Creation_Time.Text = mt.DMO_Maintain_Creation_Time;
            DMO_Maintain_Revision_Number.Text = mt.DMO_Maintain_Revision_Number;
            DMO_Maintain_Revision_Time.Text = mt.DMO_Maintain_Revision_Time;
            DMO_Check_Creation_Number.Text = mt.DMO_Check_Creation_Number;
            DMO_Check_Creation_Time.Text = mt.DMO_Check_Creation_Time;
            DMO_Check_Revision_Number.Text = mt.DMO_Check_Revision_Number;
            DMO_Check_Revision_Time.Text = mt.DMO_Check_Revision_Time;
            //BOM
            DMO_BOM_Arrpvoe_Creation_Number.Text = mt.DMO_BOM_Arrpvoe_Creation_Number;
            DMO_BOM_Arrpvoe_Creation_Time.Text = mt.DMO_BOM_Arrpvoe_Creation_Time;
            DMO_BOM_Arrpvoe_Revision_Number.Text = mt.DMO_BOM_Arrpvoe_Revision_Number;
            DMO_BOM_Arrpvoe_Revision_Time.Text = mt.DMO_BOM_Arrpvoe_Revision_Time;
            DMO_BOM_Maintain_Creation_Number.Text = mt.DMO_BOM_Maintain_Creation_Number;
            DMO_BOM_Maintain_Creation_Time.Text = mt.DMO_BOM_Maintain_Creation_Time;
            DMO_BOM_Maintain_Revision_Number.Text = mt.DMO_BOM_Maintain_Revision_Number;
            DMO_BOM_Maintain_Revision_Time.Text = mt.DMO_BOM_Maintain_Revision_Time;
            DMO_BOM_Check_Creation_Number.Text = mt.DMO_BOM_Check_Creation_Number;
            DMO_BOM_Check_Creation_Time.Text = mt.DMO_BOM_Check_Creation_Time;
            DMO_BOM_Check_Revision_Number.Text = mt.DMO_BOM_Check_Revision_Number;
            DMO_BOM_Check_Revision_Time.Text = mt.DMO_BOM_Check_Revision_Time;
        }

        public void Collect(ref mdc_Material mt)
        {
            //如果当前 Tabs 是隐藏的情况，退出
            if (!IsUsed)
            {
                return;
            }

            mt.DMO_SAP_Code = DMO_SAP_Code.Text;
            mt.DMO_Remarks  = DMO_Remarks.Text;
            mt.DMO_Arrpvoe_Creation_Number = DMO_Arrpvoe_Creation_Number.Text;
            mt.DMO_Arrpvoe_Creation_Time = DMO_Arrpvoe_Creation_Time.Text;
            mt.DMO_Arrpvoe_Revision_Number = DMO_Arrpvoe_Revision_Number.Text;
            mt.DMO_Arrpvoe_Revision_Time = DMO_Arrpvoe_Revision_Time.Text;
            mt.DMO_Priority = DMO_DrpPriority.Text;
            mt.DMO_Maintain_Creation_Number=DMO_Maintain_Creation_Number.Text;
            mt.DMO_Maintain_Creation_Time = DMO_Maintain_Creation_Time.Text;
            mt.DMO_Maintain_Revision_Number=DMO_Maintain_Revision_Number.Text;
            mt.DMO_Maintain_Revision_Time=DMO_Maintain_Revision_Time.Text;
            mt.DMO_Check_Creation_Number=DMO_Check_Creation_Number.Text;
            mt.DMO_Check_Creation_Time=DMO_Check_Creation_Time.Text;
            mt.DMO_Check_Revision_Number=DMO_Check_Revision_Number.Text;
            mt.DMO_Check_Revision_Time=DMO_Check_Revision_Time.Text;
            //BOM
            mt.DMO_BOM_Arrpvoe_Creation_Number = DMO_BOM_Arrpvoe_Creation_Number.Text;
            mt.DMO_BOM_Arrpvoe_Creation_Time = DMO_BOM_Arrpvoe_Creation_Time.Text;
            mt.DMO_BOM_Arrpvoe_Revision_Number = DMO_BOM_Arrpvoe_Revision_Number.Text;
            mt.DMO_BOM_Arrpvoe_Revision_Time = DMO_BOM_Arrpvoe_Revision_Time.Text;
            mt.DMO_BOM_Maintain_Creation_Number = DMO_BOM_Maintain_Creation_Number.Text;
            mt.DMO_BOM_Maintain_Creation_Time = DMO_BOM_Maintain_Creation_Time.Text;
            mt.DMO_BOM_Maintain_Revision_Number = DMO_BOM_Maintain_Revision_Number.Text;
            mt.DMO_BOM_Maintain_Revision_Time = DMO_BOM_Maintain_Revision_Time.Text;
            mt.DMO_BOM_Check_Creation_Number = DMO_BOM_Check_Creation_Number.Text;
            mt.DMO_BOM_Check_Creation_Time = DMO_BOM_Check_Creation_Time.Text;
            mt.DMO_BOM_Check_Revision_Number = DMO_BOM_Check_Revision_Number.Text;
            mt.DMO_BOM_Check_Revision_Time = DMO_BOM_Check_Revision_Time.Text;
        }
        #endregion

        #region 方法 DataValidation(数据验证)
        public List<string> DataValidation(mdc_Material mt, string Sheet)
        {
            //如果当前 Tabs 是隐藏的情况，退出
            if (!(IsUsed && (Action == "C" || Action == "E")))
            {
                return new List<string>();
            }

            List<Regular> regs = new List<Regular>();
            //akzo_RegularCheck(ref regs, RegularExp.NotEmpty, DMO_SAP_Code_L, mt.DMO_SAP_Code, Sheet + "SAP_Code为必填");
            switch (Category)
            {
                case "SEFI":
                    if (TaskAPI.Process == "MTO Base Code Application" || TaskAPI.Process == "TW MTO Application-DECO" || TaskAPI.Process == "TW MTO Application-PKG" || TaskAPI.Process == "NPL Master Data Application" || TaskAPI.Process == "P-Plant Extend Application" || TaskAPI.Process == "TW NPL Application-DECO" || TaskAPI.Process == "TW NPL Application-PKG")
                    {
                        if (TaskAPI.Step == "DMO Approve")
                        {
                            if ((mt.DMO_Arrpvoe_Revision_Number == "" | mt.DMO_Arrpvoe_Revision_Time == "") & (mt.DMO_Arrpvoe_Creation_Number == "" | mt.DMO_Arrpvoe_Creation_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO Maintain")
                        {
                            if ((mt.DMO_Maintain_Creation_Number == "" | mt.DMO_Maintain_Creation_Time == "") & (mt.DMO_Maintain_Revision_Number == "" | mt.DMO_Maintain_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO Check")
                        {
                            if ((mt.DMO_Check_Creation_Number == "" | mt.DMO_Check_Creation_Time == "") & (mt.DMO_Check_Revision_Number == "" | mt.DMO_Check_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }

                        if (TaskAPI.Step == "DMO BOM Approve")
                        {
                            if ((mt.DMO_BOM_Arrpvoe_Creation_Number == "" | mt.DMO_BOM_Arrpvoe_Creation_Time == "") & (mt.DMO_BOM_Arrpvoe_Revision_Number == "" | mt.DMO_BOM_Arrpvoe_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO BOM Maintain")
                        {
                            if((mt.DMO_BOM_Maintain_Creation_Number=="" | mt.DMO_BOM_Maintain_Creation_Time=="") & (mt.DMO_BOM_Maintain_Revision_Number=="" | mt.DMO_BOM_Maintain_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO BOM Check")
                        {
                            if ((mt.DMO_BOM_Check_Creation_Number == "" | mt.DMO_BOM_Check_Creation_Time == "") & (mt.DMO_BOM_Check_Revision_Number == "" | mt.DMO_BOM_Check_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                    }
                    break;
                case "RAW":
                    break;

                case "PACK":
                    break;

                case "FINI":
                    break;

                case "MTO-SEFI":
                    if (TaskAPI.Process == "MTO Base Code Application" || TaskAPI.Process == "TW MTO Application-DECO" || TaskAPI.Process == "TW MTO Application-PKG" || TaskAPI.Process == "NPL Master Data Application" || TaskAPI.Process == "P-Plant Extend Application" || TaskAPI.Process == "TW NPL Application-DECO" || TaskAPI.Process == "TW NPL Application-PKG")
                    {
                        if (TaskAPI.Step == "DMO Approve")
                        {
                            if ((mt.DMO_Arrpvoe_Revision_Number == "" | mt.DMO_Arrpvoe_Revision_Time == "") & (mt.DMO_Arrpvoe_Creation_Number == "" | mt.DMO_Arrpvoe_Creation_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO Maintain")
                        {
                            if ((mt.DMO_Maintain_Creation_Number == "" | mt.DMO_Maintain_Creation_Time == "") & (mt.DMO_Maintain_Revision_Number == "" | mt.DMO_Maintain_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO Check")
                        {
                            if ((mt.DMO_Check_Creation_Number == "" | mt.DMO_Check_Creation_Time == "") & (mt.DMO_Check_Revision_Number == "" | mt.DMO_Check_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }

                        if (TaskAPI.Step == "DMO BOM Approve")
                        {
                            if ((mt.DMO_BOM_Arrpvoe_Creation_Number == "" | mt.DMO_BOM_Arrpvoe_Creation_Time == "") & (mt.DMO_BOM_Arrpvoe_Revision_Number == "" | mt.DMO_BOM_Arrpvoe_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO BOM Maintain")
                        {
                            if ((mt.DMO_BOM_Maintain_Creation_Number == "" | mt.DMO_BOM_Maintain_Creation_Time == "") & (mt.DMO_BOM_Maintain_Revision_Number == "" | mt.DMO_BOM_Maintain_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO BOM Check")
                        {
                            if ((mt.DMO_Check_Creation_Number == "" | mt.DMO_Check_Creation_Time == "") & (mt.DMO_Check_Revision_Number == "" | mt.DMO_Check_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                    }
                    break;

                case "MTO-FINI":
                    if (TaskAPI.Process == "MTO Base Code Application" || TaskAPI.Process == "TW MTO Application-DECO" || TaskAPI.Process == "TW MTO Application-PKG" || TaskAPI.Process == "NPL Master Data Application" || TaskAPI.Process == "P-Plant Extend Application" || TaskAPI.Process == "TW NPL Application-DECO" || TaskAPI.Process == "TW NPL Application-PKG")
                    {
                        if (TaskAPI.Step == "DMO Approve")
                        {
                            if ((mt.DMO_Arrpvoe_Revision_Number == "" | mt.DMO_Arrpvoe_Revision_Time == "") & (mt.DMO_Arrpvoe_Creation_Number == "" | mt.DMO_Arrpvoe_Creation_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO Maintain")
                        {
                            if ((mt.DMO_Maintain_Creation_Number == "" | mt.DMO_Maintain_Creation_Time == "") & (mt.DMO_Maintain_Revision_Number == "" | mt.DMO_Maintain_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO Check")
                        {
                            if ((mt.DMO_Check_Creation_Number == "" | mt.DMO_Check_Creation_Time == "") & (mt.DMO_Check_Revision_Number == "" | mt.DMO_Check_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }

                        if (TaskAPI.Step == "DMO BOM Approve")
                        {
                            if ((mt.DMO_BOM_Arrpvoe_Creation_Number == "" | mt.DMO_BOM_Arrpvoe_Creation_Time == "") & (mt.DMO_BOM_Arrpvoe_Revision_Number == "" | mt.DMO_BOM_Arrpvoe_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO BOM Maintain")
                        {
                            if ((mt.DMO_BOM_Maintain_Creation_Number == "" | mt.DMO_BOM_Maintain_Creation_Time == "") & (mt.DMO_BOM_Maintain_Revision_Number == "" | mt.DMO_BOM_Maintain_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                        if (TaskAPI.Step == "DMO BOM Check")
                        {
                            if ((mt.DMO_Check_Creation_Number == "" | mt.DMO_Check_Creation_Time == "") & (mt.DMO_Check_Revision_Number == "" | mt.DMO_Check_Revision_Time == ""))
                            {
                                regs.Add(new Regular(RegularExp.NotEmpty, "", Sheet + "Creation和Revision必有一项必填"));
                            }
                        }
                    }
                    break;
            }
            return Validation(regs);
             
        }
        #endregion
    }
}
